import shutil
import glob


def combine_all_appendix_tables():
    with open("graphs/tables/big_regression_appendix.tex", "wb") as outfile:
        for filename in glob.glob("graphs/tables/regression_appendix/*.tex"):
            with open(filename, "rb") as readfile:
                shutil.copyfileobj(readfile, outfile)


if __name__ == "__main__":
    combine_all_appendix_tables()
